package com.wowangz.cms.systemmanage.translator.service;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import com.wowangz.cms.syscore.exception.ServiceException;
import com.wowangz.cms.syscore.service.BaseService;
import com.wowangz.cms.systemmanage.translator.pojo.ListTranslatorsResponse;

public class TranslatorServiceNew extends BaseService{

	
private Logger logger = LoggerFactory.getLogger(TranslatorServiceNew.class);
	

	public List<ListTranslatorsResponse> listTranslators(Map<String, Object> map) {
		
		  List<ListTranslatorsResponse> list = null;
	      try {
			
	    	  list = this.getSqlSession().selectList("TranslatorsManage.listTranslators",map);
			  if(list != null ){
				  
			  }
		} catch (Exception e) {
			e.printStackTrace();
			throw new ServiceException(e.getMessage());
		}
	      
	      return list;
	}

	public long translatorsCount(HashMap<String, Object> map) {
		
		return this.getSqlSession().selectOne("TranslatorsManage.listTranslatorscount",map);
		
	}

	
}
